package com.xuanwei.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2019-07-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XwIntegralRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 0消费1收入
     */
    @TableField("type")
    private Integer type;

    /**
     * 说明
     */
    @TableField("message")
    private String message;

    /**
     * 数量
     */
    @TableField("num")
    private Integer num;

    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 来源或去向ID
     */
    @TableField("source_id")
    private Integer sourceId;


}
